
import registnet.dao.SystemPropertiesPeer;
import registnet.base.student.Student;
import registnet.base.source.StudentSource;

SystemPropertiesPeer daoSystemPropertiesPeer = new SystemPropertiesPeer();
registnet.dao.StudentPeer daoStudentPeer = new registnet.dao.StudentPeer();
registnet.dao.GradePeer daoGradePeer = new registnet.dao.GradePeer();
registnet.dao.Student daoStudent = new registnet.dao.Student();
int semester = daoSystemPropertiesPeer.getSystemProperties().getSemester();
int academicYear = daoSystemPropertiesPeer.getSystemProperties().getAcademicYear();



void activate(){
	Student student;
	
	List daoStudents = daoStudentPeer.getAllStudents();
	Iterator li = daoStudents.listIterator();
	while(li.hasNext()){
		daoStudent = (registnet.dao.Student)li.next();
		if(daoGradePeer.getGradeByStudent(daoStudent.getStudentId(), semester, academicYear).size()>0)
			daoStudentPeer.updateStudent(daoStudent.getStudentId(), 0);
		else;
			//daoStudentPeer.updateStudent(daoStudent.getStudentId(), 0);
	}
}

